package psd.model.Prolog;

import java.util.List;

import psd.model.Bug;
import psd.model.Rule;


public abstract class PrologRule extends Rule {
	
	private String query;
	protected PrologQueryExecuter queryExecuter;

	public String getQuery() {
		return query;
	}

	public void setQuery(String query) {
		this.query = query;
	}

	@Override
	public List<Bug> execute() 
	{
		this.setQueryExecuter();
		return queryExecuter.executeQuery(this);
	}
	
	public abstract void setQueryExecuter();
}